import { ref } from 'vue'
import { findNew } from '@/api/home'

export function listFn () {
  const list = ref([])
  async function getList () {
    const res = await findNew()
    list.value = res.data.result
  }
  getList()
  return {
    list
  }
}
